package com.xiaoruyuan.firstday.domain.exception;

/**
 * @author zhengqiang
 * @version 1.0
 * @Date 2020/4/24 16:37
 * @Description 会员异常枚举类
 */
public enum MemberExceptionEnum {

    MEMBER_NOT_EXIST(201, "会员不存在"),
    NICKNAME_NOT_NULL(211, "昵称不能为空"),
    NICKNAME_LENGTH_TOO_LONG(212, "昵称长度过长"),
    ;

    private Integer code;
    private String message;

    MemberExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
